#FROM openjdk:8-jdk
#LABEL maintainer=方亚军
#
##COPY --from=0 /build/target/spring-boot-cicd-test-1.0-SNAPSHOT.jar /app/target/spring-boot-cicd-test-1.0-SNAPSHOT.jar

#
#RUN cd /app && unzip smanage-mod-service.zip
#
#WORKDIR /app/smanage-mod-service/bin
#
## 出于可移植和分享的考虑，用-v 主机目录:容器目录这种方法不能够直接在Dockerfile中实现。
##VOLUME /root/apollo.properties:/root/apollo.properties
#
#     ## 时区设定 \
##RUN  apk add -U tzdata; \
##ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
##echo 'Asia/Shanghai' >/etc/timezone; \
##touch /app.jar;
#
##EXPOSE 8081
#ENTRYPOINT [ "sh", "startup.sh"]


#FROM openjdk:8-jre-alpine
FROM registry.cn-shenzhen.aliyuncs.com/ruding/openjdk:8-jdk-alpine

ADD mpf-eventbridge-admin/mpf-eventbridge-admin-provider/target/*.zip /app/
RUN cd /app && unzip mpf-eventbridge-admin.zip

WORKDIR /app/mpf-eventbridge-admin/bin

ENTRYPOINT [ "sh", "startup.sh"]
#COPY mpf-eventbridge-admin/mpf-eventbridge-admin-provider/target/*.jar app.jar

#CMD ["java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-jar", "app.jar"]

